package com.sumainfor.pc.cfo.controller.GmioFeign;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.cfo.service.impl.InvoiceServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/5/5 16:51
 * @Description:
 */
@RestController
@RequestMapping("/key/invo")
public class InvoiceController {

    @Autowired
    InvoiceServiceImpl InvoiceServiceImpl;

    /**
     * 功能描述: 
     * 根据用户id去查询已经开具发票的账单列表
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/5/5 16:53
     */
    @PostMapping("/listTenantHaveInvoiceBill")
    public JsonResult listTenantHaveInvoiceBill(@RequestBody Map<String,Object> params){
        JsonResult result = new JsonResult();
        result.put(InvoiceServiceImpl.listTenantHaveInvoiceBill(params));
        return result;
    }

}
